﻿using DzInfo.Model.FanWei;
using Kingdee.BOS.Util;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DzInfo.Tools
{
    public class InvokeHelper
    {
        public static FlowChart Post(string esbUrl, string appkey, string workcode)
        {
            HttpClient httpClient = new HttpClient();
            string str = httpClient.AsyncRequest(esbUrl, appkey, workcode);
            FlowChart result = JsonUtil.DeserializeObject<FlowChart>(str);
            return result;
        }

        public static string Post(string soTokenUrl)
        {
            HttpClient httpClient = new HttpClient();
            string str = httpClient.AsyncRequest(soTokenUrl);
            return str;
        }
    }
}
